import { post } from "@/utils/service";

export function login(data: { user_email: string; user_password: string }) {
  return post("/user/login", data);
}

// function LoginEmail() {

// }

export function forget(values: any) {
  console.log(values)  
  return post("/user/forget", values);
}

export function reg(values: any) {
  return post("user/register", values);
}

export function getEmailCode(email: string) {
  return post("/email/sendEmailCode", { email: email });
}
